package com.kongfanyu.springcloud.service.impl;

import com.kongfanyu.springcloud.entities.CommonResult;
import com.kongfanyu.springcloud.entities.Payment;
import com.kongfanyu.springcloud.service.PaymentService;
import org.springframework.stereotype.Component;

@Component
public class PaymentFallbackService implements PaymentService {
    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<Payment>(4444,
                "服务降级返回----PaymentFallbackService",
                new Payment(id,"error serial"));
    }
}
